/*package com.seari.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import com.seari.bean.AlarmReal;
import com.seari.mapper.MongoRealMapper;
import com.seari.service.MongoRealService;

/**
 * @author TOUC
 * 
 *
 *//*
@Service
public class MongoRealServiceImpl implements MongoRealService {
	
	@Autowired
	private MongoRealMapper mongoRealMapper;
	
	@Autowired
    private MongoTemplate mongoTemplate;
	
	
	@Override
	public void deveteByStatus(int status){
		
		mongoRealMapper.deleteBystatus(status);
		
	}
	
	// 分页
	@Override
	public Page<AlarmReal> queryAllByPage(int page,int rows) {
	    PageRequest pageRequest = new PageRequest(page-1,rows);
	    return mongoRealMapper.findAll(pageRequest);
	}
	// 查询所有数据的数量
	@Override
	public int count(){
	    long size = mongoRealMapper.count();
	    int count = Integer.valueOf(String.valueOf(size));
	    return count;
	}

	@Override
	public List<AlarmReal> findByStatus(int status) {
		
		return mongoRealMapper.findByStatus(status);
		
	}
	
	

}

*/
